<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
*{
    margin: 0;
    padding: 0;
}
.box1{
    width: 100px;
    height: 100px;
    padding: 4px;
    border: 1px solid #000;
}
.box2{
    box-sizing: border-box;
    width: 100px;
    height: 100px;
    padding: 4px;
    border: 1px solid red
}
</style>
<body>
    <div class="box1">标准盒模型</div>
    <div class="box2">IE（怪异）盒模型</div>

    
</body>
</html>